from datetime import datetime

import peewee_async

from blog.settings import database
from peewee import Model, DateTimeField


class BaseModel(Model):
    create_time = DateTimeField(default=datetime.now, verbose_name='添加时间')

    class Meta:
        database = database